<style tyle="text/css">
    .modal-lg {
        width: 70%;
    }
</style>
<div class="modal-header">
    <h4 class="modal-title">优惠基本信息</h4>
</div>
<div class="modal-body">

    <form name="form" class="form-horizontal ng-pristine ng-valid-required">
        <div class="form-group" ng-if="flag">
            <label class="col-lg-4 control-label">优惠名称:</label>
            <div class="col-lg-5">
                <input type="text" class="form-control" ng-model="obj.name">
            </div>
        </div>
        <div class="form-group" ng-if="flag">
            <label class="col-lg-4 control-label">校验编号:</label>
            <div class="col-lg-5">
                <input type="text" class="form-control" ng-model="obj.verification_id">
            </div>
        </div>

        <div class="form-group" ng-if="!flag">
            <label class="col-lg-4 control-label">销售品名称:</label>
            <label class="col-lg-4 control-label text-left">
                <b>{{obj.sale_name}}</b>
            </label>
        </div>
        <div class="form-group" ng-if="!flag">
            <label class="col-lg-4 control-label">销售品编号:</label>
            <label class="col-lg-4 control-label text-left">
                <b>{{obj.sale_code}}</b>
            </label>
        </div>

        <div class="form-group">
            <label class="col-lg-4 control-label">校验类型:</label>
            <div class="col-lg-5">
                <div class="radio">
                    <label class="i-checks">
                        <input type="radio" name="jylx" ng-model="obj.verification_type" value="0">
                        <i></i>身份证号
                    </label>
                    <label class="i-checks" style="margin-left: 20px">
                        <input type="radio" name="-jylx-" ng-model="obj.verification_type" value="1">
                        <i></i>位置信息
                    </label>
                </div>
            </div>
        </div>
        <div class="form-group" ng-if="flag">
            <label class="col-lg-4 control-label">校验内容:</label>
            <div class="col-lg-5">
                <input type="text" class="form-control" ng-model="obj.verification_code">
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg-4 control-label">优惠限制类型:</label>
            <div class="col-lg-5">
                <div class="radio">
                    <label class="i-checks">
                        <input type="radio" name="yhxzlx" ng-model="obj.discount_limit_type" value="0">
                        <i></i>城市
                    </label>
                    <label class="i-checks" style="margin-left: 20px">
                        <input type="radio" name="yhxzlx" ng-model="obj.discount_limit_type" value="1">
                        <i></i>景区
                    </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg-4 control-label">优惠类型:</label>
            <div class="col-lg-5">
                <div class="radio">
                    <label class="i-checks">
                        <input type="radio" name="-_-" ng-model="obj.discount_type" value="1">
                        <i></i>打折优惠
                    </label>
                    <label class="i-checks" style="margin-left: 20px">
                        <input type="radio" name="-_-" ng-model="obj.discount_type" value="2">
                        <i></i>减价优惠
                    </label>
                </div>
            </div>
        </div>
        <div class="form-group" ng-if="obj.discount_type==1">
            <label class="col-lg-4 control-label">优惠信息:</label>
            <div class="col-lg-2">
                <input type="number" class="form-control" ng-model="obj.discount_proportion">
            </div>
            <label class="col-lg-1 control-label text-left">%</label>
        </div>
        <div class="form-group" ng-if="obj.discount_type==2">
            <label class="col-lg-4 control-label">优惠信息:</label>
            <div class="col-lg-2">
                <input type="number" class="form-control" ng-model="obj.discount_price">
            </div>
            <label class="col-lg-1 control-label text-left">元</label>
        </div>
    </form>

</div>
<div class="modal-footer">
    <button class="btn btn-success" type="button" ng-click="ok()">确定</button>
    <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
</div>